package com.situ.mall.web.service;

import com.category.spi.model.Category;
import com.mall.common.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "mall-gateway", contextId = "category-feign")
public interface CategoryFeignService {
    @GetMapping("/api/categories/tree")
    ResponseEntity<JsonResult<List<Category>>> tree();
}
